﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LanguageTraning
{
    class AnonymousType
    {
        public void TestMethod()
        {
            Console.WriteLine("---------------------------------------------");
            Console.WriteLine("this is example of {0}", this.GetType().ToString());

            var p1 = new { Name = "Lawnmower", Price = 495.00 };
            var p2 = new { Name = "Shovel", Price = 26.95 };
            p1 = p2;
        }

        public static void TestMethod2()
        {
            var p1 = new { Name = "Lawnmower", Price = 495.00 };
            var p2 = new { Name = "Shovel", Price = 26.95 };
            p1 = p2;
        }
    }
}
